package com.admissions.model;


import java.util.ArrayList;

import android.graphics.Bitmap;

public class DeThi extends ItemInfo {
    private static final long serialVersionUID = 1L;

    public static final String DETHI = "dethi";

    public DeThi(Bitmap icon, String id, String name, String description) {
        super(icon, id, name, description);
    }

    ArrayList<CauHoi> cauHois;

    public float getTotalMark(ArrayList<CauHoi> cauHois) {
        float totalMark = 0;
        for (CauHoi cauHoi : cauHois) {
            totalMark += cauHoi.getTotalMark();
        }
        return totalMark;
    }

    @Override
    public String toString() {
        return "id = " + id + "--name = " + name + "--description = " + description;
    }
}
